<extend name="./Application/Home/View/Layout/application.html"/>

<block name="content">
    <div class="index">
        <div class="slick meun">
            <volist name="adverts" id="advert">
                <a href="{{$advert.url}}"><img class="img-responsive" src="{{$advert.thumb}}"
                                               style="width: 354px;height: 222px;"/></a>
            </volist>
        </div>

        <ul class="nav">
            <li><a href="{{:U('Index/all')}}">全部商品</a></li>
            <li><a href="{{:U('Index/category')}}">商品分类</a></li>
        </ul>

        <h3>新品推荐</h3>

        <div class="products">
            <volist name="is_news" id="new">
                <dl>
                    <dt><a href="{{:U('show',['id'=>$new[id]])}}"><img class="img-responsive"
                                                                     src="{{$new.thumb}}"
                                                                     alt="商品图片" style="width: 152px;height: 92px;"/></a>
                    </dt>
                    <dd><a href="#">{{$new.name}}</a><span>已售 12</span></dd>
                    <dd class="label">库存 {{$new.stock}}</dd>
                    <dd>{{$new.price}}</dd>
                </dl>
            </volist>
        </div>

        <h3>热销商品</h3>

        <div class="products">
            <volist name="is_hots" id="hot">
                <dl>
                    <dt><a href="{{:U('show',['id'=>$hot[id]])}}"><img class="img-responsive"
                                                                     src="{{$new.thumb}}"
                                                                     alt="商品图片" style="width: 152px;height: 92px;"/></a>
                    </dt>
                    <dd><a href="#">{{$new.name}}</a><span>已售 12</span></dd>
                    <dd class="label">库存 {{$new.stock}}</dd>
                    <dd>{{$new.price}}</dd>
                </dl>
            </volist>
        </div>

        <h3>推荐商品</h3>

        <div class="products">
            <volist name="is_recommends" id="recommend">
                <dl>
                    <dt><a href="{{:U('show',['id'=>$recommend[id]])}}"><img class="img-responsive"
                                                                           src="{{$recommend.thumb}}"
                                                                           alt="商品图片"
                                                                           style="width: 152px;height: 92px;"/></a>
                    </dt>
                    <dd><a href="#">{{$recommend.name}}</a><span>已售 12</span></dd>
                    <dd class="label">库存 {{$recommend.stock}}</dd>
                    <dd>{{$recommend.price}}</dd>
                </dl>
            </volist>
        </div>
    </div>
</block>
